require 'scanner/states/state'
require 'scanner/states/start_state'

class NumberState < State
  @token_type = :Number

  def self.next_state(char)
    next_state = case char
      when '0'..'9': NumberState
      else StartState
    end
    return next_state
  end
end